class RegistrationsController < Devise::RegistrationsController
	# protect_from_forgery
	# before_filter :configure_permitted_parameters




# def edit
# 	# @user = current_user
# end
#
# def update
# 	super
# end

protected

	def configure_permitted_parameters

		devise_parameter_sanitizer.for(:sign_up) {|u| u.permit(:name,:QQ,:telephone,:company,:self_introduce)}
		devise_parameter_sanitizer.for(:account_update) {|u| u.permit(:name,:QQ,:telephone,:company,:self_introduce)}
		# devise_parameter_sanitizer.for(:sign_up) << [:QQ]
		# devise_parameter_sanitizer.for(:account_update) << [:QQ]
		# devise_parameter_sanitizer.for(:account_update) << [:telephone]
		# devise_parameter_sanitizer.for(:account_update) << [:company]
		# devise_parameter_sanitizer.for(:account_update) << [:self_introduce]

	end


	# def registration_params
	#
	# 	params.require(:user).permit(:email,:name,:QQ,:company,:password,:password_confirmation,
	# 	:telephone,:self_introduce)
	# end

end

